import request from '@/utils/request'

// 查询服务商信息列表
export function listAgentInfo(query) {
  return request({
    url: '/agent/agentInfo/list',
    method: 'get',
    params: query
  })
}

// 查询服务商信息详细
export function getAgentInfo(agentId) {
  return request({
    url: '/agent/agentInfo/' + agentId,
    method: 'get'
  })
}

// 新增服务商信息
export function addAgentInfo(data) {
  return request({
    url: '/agent/agentInfo',
    method: 'post',
    data: data
  })
}

// 修改服务商信息
export function updateAgentInfo(data) {
  return request({
    url: '/agent/agentInfo',
    method: 'put',
    data: data
  })
}

// 删除服务商信息
export function delAgentInfo(agentId) {
  return request({
    url: '/agent/agentInfo/' + agentId,
    method: 'delete'
  })
}

// 导出服务商信息
export function exportAgentInfo(query) {
  return request({
    url: '/agent/agentInfo/export',
    method: 'get',
    params: query
  })
}